c program to count total odd and even numbers in an array